#                        -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_INIT([ms], [1.0])

AC_CONFIG_AUX_DIR([build-aux])

# forcing c++11 usage (must be before AC_PROG_CXX)
CXXFLAGS="$CXXFLAGS -std=c++11"

# Automake.
AM_INIT_AUTOMAKE([color-tests -Wall -Werror foreign])

# By default, let "make" hide the compilation command and display a
# "GEN ..." message, unless V=1 is passed to "make".
AM_SILENT_RULES

# Checks for programs.
AC_PROG_CXX

# Checks for typedefs, structures, and compiler characteristics.
# AC_HEADER_STDBOOL6
# AC_C_INLINE

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE

AC_CONFIG_FILES([Makefile src/Makefile]) # check/Makefile

PKG_CHECK_MODULES([libglfw], [libglfw])
PKG_CHECK_MODULES(GLEW, [glew])
PKG_CHECK_MODULES([OPENAL], [openal])
PKG_CHECK_MODULES([LIBPQXX], [libpqxx])
PKG_CHECK_MODULES([IMAGE_MAGICK], [ImageMagick++])

AC_OUTPUT
